package com.rogan.rpc.rpcserver;

import java.util.HashMap;
import java.util.Map;

public class DefaultServiceRegister implements ServiceRegister{
private Map<String, ServiceObject> serviceMap = new HashMap<String, ServiceObject>();

public void register(ServiceObject so) {
	this.serviceMap.put(so.getName(), so);
}

@Override
public ServiceObject getServiceObject(String name) {
	return this.serviceMap.get(name);
}
}
